package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author lyl
 * @since 2018-08-01
 */
@TableName("actual_route")
public class ActualRoute extends Model<ActualRoute> {

    private static final long serialVersionUID = 1L;

    public TicketNum getTicketNum() {
        return ticketNum;
    }

    public void setTicketNum(TicketNum ticketNum) {
        this.ticketNum = ticketNum;
    }

    @TableField(exist = false)
    private TicketPrice ticketPrice;

    @TableField(exist = false)
    private TicketNum ticketNum;

    public TicketPrice getTicketPrice() {
        return ticketPrice;
    }

    public void setTicketPrice(TicketPrice ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    /**
     * 实际线路id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 线路节点经纬度数组
     */
    private String points;
    /**
     * 车里程
     */
    private String carmiles;
    /**
     * 车辆编号
     */
    @TableField("car_number")
    private Integer carNumber;
    /**
     * 车辆能座的人数
     */
    @TableField("car_per_num")
    private Integer carPerNum;
    /**
     * 车辆
     */
    @TableField("car_fileid")
    private Integer carFileid;
    /**
     * 站点id
     */
    @TableField("car_siteids")
    private String carSiteids;

    public String getLinename() {
        return linename;
    }

    public void setLinename(String linename) {
        this.linename = linename;
    }

    @TableField("linename")
    private String linename;

    @TableField(exist = false)
    private String sitePionts;

    public String getSitePionts() {
        return sitePionts;
    }

    public void setSitePionts(String sitePionts) {
        this.sitePionts = sitePionts;
    }
    @TableField(exist = false)
    private List<CarSite> sites = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPoints() {
        return points;
    }

    public void setPoints(String points) {
        this.points = points;
    }

    public String getCarmiles() {
        return carmiles;
    }

    public void setCarmiles(String carmiles) {
        this.carmiles = carmiles;
    }

    public Integer getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(Integer carNumber) {
        this.carNumber = carNumber;
    }

    public Integer getCarPerNum() {
        return carPerNum;
    }

    public void setCarPerNum(Integer carPerNum) {
        this.carPerNum = carPerNum;
    }

    public Integer getCarFileid() {
        return carFileid;
    }

    public void setCarFileid(Integer carFileid) {
        this.carFileid = carFileid;
    }

    public String getCarSiteids() {
        return carSiteids;
    }

    public void setCarSiteids(String carSiteids) {
        this.carSiteids = carSiteids;
    }

    public List<CarSite> getSites() {
        return sites;
    }

    public void setSites(List<CarSite> sites) {
        this.sites = sites;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ActualRoute{" +
                "id=" + id +
                ", points=" + points +
                ", carmiles=" + carmiles +
                ", carNumber=" + carNumber +
                ", carPerNum=" + carPerNum +
                ", carFileid=" + carFileid +
                ", carSiteid=" + carSiteids +
                ", linename=" + linename +
                "}";
    }
}